<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html lang="cn">
<head>
	<meta charset="UTF-8">
	<title><?php echo ($title); ?></title>
    <link rel="stylesheet" href="/Public/css/bootstrap.min.css">
    <link rel="stylesheet" href="/Public/my.css">

</head>
<body>
	<div class="container">
	<h1><span class="glyphicon glyphicon-user"></span><?php echo ($title); ?></h1>
	<div class="center-block mt20">
	    <a href="<?php echo U('index');?>" class="btn btn-info">首页</a>
	    <a href="<?php echo U('add');?>" class="btn btn-success">添加</a>

	</div>	


    <h2>编辑用户</h2>
    <form action="<?php echo U('User/update');?>" method="post" class="h3 mt20">
        <input type="hidden" name="id" value="<?php echo ($data["id"]); ?>">
        name:
        <input type="text" name="name" value="<?php echo ($data["name"]); ?>" placeholder="请输入用户名"><br><br>
        sex:
        <input type="radio" name="sex" value="0" <?php if($data["sex"] == '0'): ?>checked<?php endif; ?>>女
        <input type="radio" name="sex" value="1" <?php if($data["sex"] == '1'): ?>checked<?php endif; ?> >男
        <input type="radio" name="sex" value="2" <?php if($data["sex"] == '2'): ?>checked<?php endif; ?>>保密<br><br>
        age:
        <input type="text" name="age" value="<?php echo ($data["age"]); ?>"><br><br>
        province:
        <select name="province">
            <option value="江苏" <?php if($data["province"] == '江苏'): ?>selected<?php endif; ?>>江苏</option>
            <option value="上海" <?php if($data["province"] == '上海'): ?>selected<?php endif; ?>>上海</option>
            <option value="新疆" <?php if($data["province"] == '新疆'): ?>selected<?php endif; ?>>新疆</option>
            <option value="浙江" <?php if($data["province"] == '浙江'): ?>selected<?php endif; ?>>浙江</option>
            <option value="北京" <?php if($data["province"] == '北京'): ?>selected<?php endif; ?>>北京</option>
            <option value="深圳" <?php if($data["province"] == '深圳'): ?>selected<?php endif; ?>>深圳</option>
            <option value="纽约" <?php if($data["province"] == '纽约'): ?>selected<?php endif; ?>>纽约</option>
        </select><br><br>
        <input type="hidden" name="vcode" value="7998">
        <input type="hidden" name="hehe" value="你来打我啊!">
        <input type="hidden" name="haha" value="就不打你">
        <input type="submit" value="保存">
    </form>

	</div>
<script src="/Public/js/jquery.min.js"></script>
<script src="/Public/js/bootstrap.min.js"></script>
	
</body>
</html>